package com.djz.stuinfomge.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.djz.stuinfomge.dao.IAchievementDAO;
import com.djz.stuinfomge.entity.Achievement;
import com.djz.stuinfomge.entity.PageBean;
import com.djz.stuinfomge.exception.PageNumOutOfRange;
import com.djz.stuinfomge.service.AchievementService;

@Service
public class AchievementServiceImpl extends BaseServiceImpl<Achievement> implements AchievementService{
	
	public PageBean<Achievement> getPage(Integer id, Integer size, Achievement bean)
			throws PageNumOutOfRange {
		
		return getDAO().getPage(id, size, bean);
	}

	public List getAchievementByName(String name) {
		return null;
	}

	
    @Autowired
    public void setDAO(IAchievementDAO dao) {
	this.dao = dao;
    }

    public IAchievementDAO getDAO() {
	return (IAchievementDAO) dao;
    }


}
